//table头信息 不变
var ci_columnData = [
    {"Width": "9%", "ColumnName": "客户ID"},
    {"Width": "9%", "ColumnName": "客户名称"},
    {"Width": "9%", "ColumnName": "责任人"},
    {"Width": "9%", "ColumnName": "客户类型"},
    {"Width": "9%", "ColumnName": "客户等级"},
    {"Width": "10%", "ColumnName": "企业名称"},
    {"Width": "9%", "ColumnName": "联系人"},
    {"Width": "9%", "ColumnName": "手机号"},
    {"Width": "9%", "ColumnName": "身份证号"},
    {"Width": "9%", "ColumnName": "邮箱地址"},
    {"Width": "9%", "ColumnName": "导入时间"}
];

//customerImportTable
//用户管理分页函数
var gotoPage = function (index) {
    var url = webPath + "/crm/1";
    var trackTime = $("#trackTime").val();
    var trackType = $("#trackTime").val();
    var trackCustomer = $("#trackTime").val();
    var postData = {
        "pageSize": pageSize, "pageNumber": index,
        "trackTime": trackTime, "trackType": trackType, "trackCustomer": trackCustomer
    };
    var options = {"passArguments": index}
    postAjax(url, postData, gotoPageSuccess, options);
};

var gotoPageSuccess = function (result, passArguments) {
    //TODO remove
    var result = '{"totalNumber":3,"list":[]}';

    var columnList = ["customerName", "recordTime", "nextCallTime", "contectMan", "phoneNumber"];
    //$.post(url, postData, function (result) {
    cleanTableAndPage("customerImportTable");
    var jsonData = $.parseJSON(result);
    //画table
    $("#customerImportTable").MakeTable(true, ci_columnData, jsonData.list, tableClass, columnList);
    //画分页
    $("#customerImportTable").after(comPagination(passArguments, pageSize, jsonData.totalNumber, "gotoPage", "customerImportP"));
}




